class Core
  attr_accessor :server, :world, :channels
  
  def initialize(port=5000)
    require 'db'
    require 'libs'
    require 'models'
    $core = self
    loadWorld
    loadOptions
    
    @server = Server.new(port)
    loadBackend
  end
  
  def loadOptions
    @options = Option.find(:all)
  end
  
end
